#include "../include/tid_arr.h"

int tidArrInit(int workernum, tidArr_t *tidArr) {
    tidArr->workernum = workernum;
    tidArr->arr = (pthread_t *)calloc(workernum, sizeof(pthread_t));
    ERROR_CHECK(tidArr->arr, NULL, "calloc when create tidarr");
    return 0;
}
